﻿using System;
using System.Linq;
using System.Linq.Expressions;

namespace Core.Repository
{
    public interface IRepository<TKey, TObject>
    {
        TObject Get(TKey id);
        IQueryable<TObject> GetAll();
        IQueryable<TObject> Where(Expression<Func<TObject, bool>> predicate);
        void Insert(TObject o);
        void Save();
        void Delete(TObject o);
    }
}
